package service.serviceImpl;

import dao.InfoMapper;
import dao.daoImpl.InfoMapperImpl;
import pojo.User;
import service.InfoService;

import java.sql.SQLException;

/**
 * Created by Administrator on 2017-12-10.
 */
public class InfoServiceImpl implements InfoService {
    InfoMapper infoMapper=new InfoMapperImpl();
    @Override
    public User selectInfo(Integer id) throws SQLException {
        return infoMapper.selectInfo(id);
    }

    @Override
    public int updateInfo(User user) throws SQLException {
        return infoMapper.updateInfo(user);
    }

}
